package com.itcanteen.reggie.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


import java.beans.Transient;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2022/10/25 15:32
 */
@Data
public class Category implements Serializable {


    @Excel(name = "#")
    private Long id;

    //类型 1 菜品分类 2 套餐分类
    @Excel(name = "类型",replace={"菜品分类_1","套餐分类_2"})
    private Integer type;

    //分类名称
    @Excel(name = "分类名称")
    private String name;

    //顺序
    @Excel(name = "顺序")
    private Integer sort;

    //创建时间

    private LocalDateTime createTime;

    //更新时间

    private LocalDateTime updateTime;

    //创建人
    @Excel(name = "创建人")
    private Long createUser;

    //修改人
    private Long updateUser;



    @TableField(exist=false)
    @Excel(name = "创建时间",format = "yyyy-MM-dd HH:mm:ss", databaseFormat = "yyyyMMddHHmmss")
    String  createTimeStr;
    @TableField(exist=false)
    @Excel(name = "更新时间",databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd")
    String updateTimeStr;


}
